{% extends "base_generic.html" %}
{% block content %}
        <h1>Partidos</h1>
        <h2><a href="/admin/matchs//new/" class="add">New match</a></h2>
        <table class="imgswithoutborders" id="matchestable">
        {% for match in matchs %}
          <tr>
            <td><a href="#">{{ match.homeTeam }}</a></td>
            <td><a href="#">{{ match.awayTeam }}</a></td>
            <td><a href="#">{{ match.matchDate|date:"d/m/y" }}</a></td>
            <td><a href="#">{{ match.matchDate|date:"H:i" }}</a></td>
            <td><a href="#">{{ match.competition }}</a></td>
            <td><a href="#">{{ match.phase }}</a></td>
            <td><a href="/admin/matchs/{{ match.key }}/edit/">Edit</a></td>
            <td><a href="/admin/matchs/{{ match.key }}/delete/" onclick="if(confirm('¿Do you really want to delete {{ match.name }}?')){return true;}else{return false;}">Delete</a></td>
          </tr>
        {% endfor %}
        </table>

{% endblock %}
